package com.java8.weigengfei.lambda;

public class Student {
    private Integer id;
    private String name;
    private Integer age;

    public Student(){

    }

    public void show(){
        System.out.println("我是show方法："+name);
    }
    public void show2(Student s){
        System.out.println(s);
        System.out.println(this);
    }
    public static void play(Student s){
        System.out.println("我是静态play方法:"+s);
    }
    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
